//
//  XSHJX.h
//  WeddingCar
//
//  Created by admin on 2017/3/3.
//  Copyright © 2017年 Sugar. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XSHJX : NSObject



/**
  解析

 @param result 接口数据
 @param finishBlock 成功  处理结果尽量少写代码
 */
+ (void)XSHJXResult:(id)result finishBlock:(void(^)())finishBlock;


/**
 解析

 @param result 接口数据
 @param loadingView 加载view
 @param finishBlock 成功  处理结果尽量少写代码
 */
+ (void)XSHJXResult:(id)result loadingView:(UIView *)loadingView finishBlock:(void(^)())finishBlock;


/**
  解析

 @param result 接口数据
 @param loadingView 加载view
 @param finishBlock 成功  处理结果尽量少写代码
 @param errorBlock 失败  处理结果尽量少写代码
 */
+ (void)XSHJXResult:(id)result loadingView:(UIView *)loadingView finishBlock:(void(^)())finishBlock  errorBlock:(void(^)())errorBlock;

+ (void)XSHJXErrer:(NSError *)error;

@end
